package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_rebackpost;
import com.balakitbbs.dao.Bala_rebackpostDaoIF;
   /**
    * bala_rebackpost Service类
    */ 
@Service
public class Bala_rebackpostService{
@Autowired
private Bala_rebackpostDaoIF dao;
	public void addBala_rebackpost(Bala_rebackpost bala_rebackpost){
		dao.addBala_rebackpost(bala_rebackpost);
	}

	public void delBala_rebackpost(String id){
		dao.delBala_rebackpost(id);
	}

	public void delBala_rebackpostTrue(String id){
		dao.delBala_rebackpostTrue(id);
	}

	public void updateBala_rebackpost(Bala_rebackpost bala_rebackpost){
		dao.updateBala_rebackpost(bala_rebackpost);
	}

	public Bala_rebackpost selectBala_rebackpostById(String id){
		return dao.selectBala_rebackpostByID(id);
	}

	public int selectBala_rebackpostCount(){
		return dao.selectBala_rebackpostCount();
	}

	public int selectBala_rebackpostCountAll(){
		return dao.selectBala_rebackpostCountAll();
	}

	public List<Bala_rebackpost> selectBala_rebackpostsByPage(SearchPageUtil spu){
		return dao.selectBala_rebackpostsByPage(spu);
	}

	public int selectBala_rebackpostsByPOJOCount(Bala_rebackpost bala_rebackpost){
		return dao.selectBala_rebackpostsByPOJOCount(bala_rebackpost);
	}

	public List<Bala_rebackpost> selectBala_rebackpostsByPOJO(Bala_rebackpost bala_rebackpost){
		return dao.selectBala_rebackpostsByPOJO(bala_rebackpost);
	}

	public List<Bala_rebackpost> selectBala_rebackpostsByPojoPage(SearchPageUtil spu,Bala_rebackpost bala_rebackpost){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_rebackpost);
		return dao.selectBala_rebackpostsByPojoPage(map);
	}

}

